package com.css.upms.api.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * OptLogVO
 *
 * @author hanyx
 * @date 2019/06/05
 */
@Data
public class OptLogVO {

    /**
     * 系统编码
     */
    private String xtbm;
    /**
     * 功能名称
     */
    private String gnmc;
    /**
     * 操作说明||操作说明
     */
    private String czsm;
    /**
     * IP地址||IP地址
     */
    private String ipdz;
    /**
     * 录入日期
     */
    private LocalDateTime lrrq;

    /**
     * 用户名称
     */
    private String realName;
    /**
     * 机构id
     */
    private String deptId;

    /**
     * deptName
     */
    private String deptName;
    /**
     * 录入日期
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lrrqEnd;

    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lrrqStart;

}
